import axios from './request'

// 品牌列表
export const getBrandListApi = (data) => axios.get('goods/brand', {params: data})
// 添加品牌
export const addBrandApi = (data) => axios.post('goods/brand',data)
//  将品牌放到回收站
export const changeIs_delApi = (id, is_del) => axios.patch('goods/changeState/'+id, {is_del})

// 获取品牌回收站数据
export const recyclebinApi = (data) => axios.get('goods/brandbin',{params: data})

// 修改品牌
export const editBrandApi = (id, data) => axios.patch('goods/editbrand/'+id, data)

// 删除品牌
export const delBrandAPI = (id) => axios.delete('/goods/delbrand/'+id)